#pragma once


#ifdef __cplusplus
extern "C" {
#endif

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#ifdef   VAR_BTN_GLOBALS
#define  VAR_BTN_EXT
#else
#define  VAR_BTN_EXT  extern
#endif

QueueHandle_t button_init();
VAR_BTN_EXT unsigned char keyValue;
VAR_BTN_EXT QueueHandle_t btnQueue;
int wait_key_value(unsigned char *value,int delay);

#ifdef __cplusplus
}
#endif